import config from '@/common/config.js'
import store from '@/store/index.js'
import $http from '@/api/request.js'
import common from '@/common/common.js'
import pop from '@/common/pop.js'


class Api {
	constructor(){
		this.toUrl = common.toUrl;
	}
	async dataQuery(data) {
		try {
			const response = await $http.post({
				url: '/informationDataQuery/api',
				data
			})
			if (response.code != 100) {
				pop.Toast(response.msg)
				throw new Error(response.msg)
			}
			return response.data
		} catch (error) {
			throw error
		}
	}
	
	
} 

export default new Api();